package edu.xhu.model.search.pojos;

import lombok.Data;

import java.util.HashMap;
import java.util.Map;

/**
 * 前缀树节点
 */
@Data
public class TrieNode {
    public Map<Character, TrieNode> children;
    public boolean isEndOfWord;

    public TrieNode() {
        children = new HashMap<>();
        isEndOfWord = false;
    }
}
